<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ include file="include.jsp"%>
<%
 String categoryName = request.getParameter("categoryName");
 String categoryId = request.getParameter("categoryId");
 
 

%>
<html>
  <head> 
    <title></title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
    <style type="text/css">
	 body {margin:0; padding:0; width:100%; height:100%; overflow:hidden;} 
	 #background{position:absolute; z-index:1; margin:0;width:100%; height:100%;}
	 #scroller {position:absolute;scroll:no; width:100%; height:100%; top:0; left:0; overflow:auto; z-index:2;} 
</style>

<script type="text/javascript">
function addSame(id,name){ 
  window.location.href="samelevel.jsp?categoryId=" + id +"&categoryName="+name;

}
function addSub(id,name){
  window.location.href="categorysub.jsp?categoryId=" + id + "&categoryName="+name;
  
}
function saveData(){
   if("" == form1.categoryName.value){
     alert("分类名称不能为空");
   
   }else{
     form1.submit();
   }


}


</script>
  </head>
  
  <body scroll="no" leftmargin="0" topmargin="0"  marginwidth="0" marginheight="0">
      <form name ="form1" action="do.jsp?type=update" method="post">
     <div align="center">
		  <table width="460" border="0" cellspacing="0" cellpadding="0">
		          <tr>
		            <td width="9"><img src="images/tanchu_01.jpg" width="9" height="28" /></td>
		            <td align="center" background="images/tanchu_02.jpg"><strong>Wiki类别管理</strong></td>
		            <td width="10"><img src="images/tanchu_03.jpg" width="10" height="28" /></td>
		          </tr>
		        </table>
		        <table width="460" border="0" cellspacing="0" cellpadding="0">
		          <tr>
		            <td width="9" background="images/tanchu_04.jpg">&nbsp;</td>
		            <td bgcolor="eaeef7"><table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
		                <tr>
		                  <td width="16%" height="27" bgcolor="d9e1f3" class="underlin-heavygray">&nbsp;</td>
		                  <td width="84%" align="right" bgcolor="d9e1f3" class="underlin-heavygray">
		                  <img src="images/zj.gif" style="cursor: hand" onclick="addSame('<%=categoryId%>','<%=categoryName%>');" width="16" height="16" align="absmiddle" />&nbsp;增加同级分类&nbsp;&nbsp;&nbsp;
		                  <img src="images/zj.gif" onclick="addSub('<%=categoryId%>','<%=categoryName%>');" style="cursor: hand" width="16" height="16" align="absmiddle" />&nbsp;增加子分类</td>
		                </tr>
		
		                <tr>
		                  <td height="30" class="underlin-heavygray">分类名称：</td>
		                  <td align="left" class="underlin-heavygray"><input type="text" size="60" value="<%=categoryName%>" style="" name="categoryName"><input type="hidden" name="categoryId" value="<%=categoryId%>"></td>
		                </tr>
		              </table>
		              <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
		                
		                  <tr>
		                    <td align="center"><input type="button" onclick="saveData()" value="确定">&nbsp;&nbsp;<input type="button" onclick="window.close()" value="取消"></td>
		                  </tr>
		              </table></td>
		            <td width="10"><img src="images/tanchu_06.jpg" width="10" height="120" /></td>
		          </tr>
		        </table>
		        <table width="460" border="0" cellspacing="0" cellpadding="0">
		          <tr>
		            <td width="9"><img src="images/tanchu_07.jpg" width="9" height="9" /></td>
		            <td width="" background="images/tanchu_08.jpg"><img src="images/tanchu_08.jpg" width="204" height="9" /></td>
		            <td width="10"><img src="images/tanchu_09.jpg" width="10" height="9" /></td>
		          </tr>
		        </table>
		      </div>
  </form>
  </body>
</html>
